package com.onlineclass.backstagemanagement.feign;

import com.onlineclass.backstagemanagement.config.FeignConfig;
import com.onlineclass.backstagemanagement.feignfallback.UserFeignFallBack;
import com.onlineclassbackstage.beans.ResultObject;
import com.onlineclassbackstage.beans.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Component
@FeignClient(name = "classServer",configuration = FeignConfig.class)
public interface CourseFeign {

    @RequestMapping("/selectCoursesByTeacher")
    ResultObject selectCourseByTeacher();

}
